From e962e03d114d0a5f6ad02cca268ab0c63e35c8f1 Mon Sep 17 00:00:00 2001 From: "emellor@leeni.uk.xensource.com" Date: Mon, 9 Jan 2006 11:17:55 +0000 Subject: [PATCH] Fix the error recovery at the undo_out label in __gnttab_map_grant_ref to not unlock the spinlock twice (which causes a BUG). Signed-off-by: Ewan Mellor --- xen/common/grant_table.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/xen/common/grant_table.c b/xen/common/grant_table.c index 4622007c6a..3a7b63a95e 100644 --- a/xen/common/grant_table.c +++ b/xen/common/grant_table.c @@ -312,8 +312,6 @@ __gnttab_map_grant_ref( if ( !act->pin ) clear_bit(_GTF_reading, &sha->flags); - spin_unlock(&rd->grant_table->lock); - unlock_out: spin_unlock(&rd->grant_table->lock); (void)__put_user(rc, &uop->status); -- 2.30.2